package org.wso2.carbon.identity.entitlement.axis2handler;

/**
 * Created by IntelliJ IDEA.
 * User: pushpalanka
 * Date: 5/5/11
 * Time: 3:37 PM
 * To change this template use File | Settings | File Templates.
 */


import org.apache.axis2.AxisFault;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.description.AxisDescription;
import org.apache.axis2.description.AxisModule;
import org.apache.axis2.modules.Module;
import org.apache.neethi.Assertion;
import org.apache.neethi.Policy;


public class EntitlementHandlerModule implements Module{

    public void init(ConfigurationContext configurationContext, AxisModule axisModule) throws AxisFault {
        System.out.println("inside the init : module");
    }


    /*
    When engaging this module to some service or operation , module will be notify by calling this method
     */
    public void engageNotify(AxisDescription axisDescription) throws AxisFault {
        System.out.println("inside the engageNotify " +
                axisDescription);
    }

    public boolean canSupportAssertion(Assertion assertion) {
        //returns whether policy assertions can be supported
        return false;
    }

    public void applyPolicy(Policy policy, AxisDescription axisDescription) throws AxisFault {
        // Configure using the passed in policy!
    }

    public void shutdown(ConfigurationContext configurationContext) throws AxisFault {

    }
}
